<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="#{facesContext.externalContext.requestContextPath}/resources/css/primefaces.css" rel="stylesheet" type="text/css" />
        <link href="#{facesContext.externalContext.requestContextPath}/resources/css/padrao.css" rel="stylesheet" type="text/css" />
        <link href="#{facesContext.externalContext.requestContextPath}/resources/css/jsf.css" rel="stylesheet" type="text/css" />
        <title></title>
    </h:head>
    <h:body>        
        <h:form prependId="false" style="width: 406px; margin: 170px auto 0;">
            <p:messages id="msgs"/> 
            <h:panelGrid columns="2">
                <h:graphicImage value="#{resource['img:login.png']}"/>
                <h2 align="center">Almanach Gospel</h2>
            </h:panelGrid>
            <br/>
            <h:outputLabel value="#{i18n.login}" style="color:#008B45; font-weight: bold; width: 115px;text-align: right; float: left;margin: 0 10px 0 0; padding: 9px 0 0 0;font-size: 16px;"/>
            <h:inputText id="j_username" value="#{login.nome}" style="width: 220px; display: block; padding: 4px; margin: 0 0 10px 0; font-size: 18px; color: #3a3a3a; font-family: Georgia, serif;"/>
            <div class="clear"></div>
            <h:outputLabel value="#{i18n.senha}" style="color:#008B45; font-weight: bold; width: 115px;text-align: right; float: left;margin: 0 10px 0 0; padding: 9px 0 0 0;font-size: 16px;"/>
            <h:inputSecret id="j_password" value="#{login.senha}" style="width: 220px; display: block; padding: 4px; margin: 0 0 10px 0; font-size: 18px; color: #3a3a3a; font-family: Georgia, serif;"/>
            <div class="clear"></div>
            <br />            
            <h:commandButton action="#{login.logon}" style="margin: -20px 0 0 257px;" styleClass="commandButton" value="Fazer logon"/>
	</h:form>
    </h:body>
</html>